<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>${category.name} </title>
		<script src="js/jquery.js" type="text/javascript"></script>
		<script src="js/table.js" type="text/javascript"></script>
	</head>
	<body>
		<div id="view_body_top">
			<div id="view_body_top_title"> 
				${category.name} 
			</div>
		</div>
		<div id="view_body_middle">
			<div id="view_body_middle_left">				
				<jsp:include  page="../categories.jsp" flush="true"/>
			</div>
			<div id="view_body_middle_right">
				<div class="view_body_middle_right_title">
					|&nbsp;&nbsp;${category.name}&nbsp;-&nbsp;文章列表
				</div>
				<s:iterator value="lstPapers" status="st" id="papers">		
					<div class="title" style="background:#b70303;padding:5px; margin:10px 0;width:95%;color:#FFFFFF;font-size: 13px;">		
						<span style="float:right;margin:0 10px;"><a href="paper/viewMorePapersByType.action?type=${papers[0].type}&cid=${category.cid}"><img src="image/more.gif"/></a></span>
						<b>•<s:if test="#st.index==0 || #papers[0].type=='06'">总论</s:if>
						<s:elseif test="#st.index==1 ||#papers[0].type=='01'">马克思主义基本原理概论</s:elseif>
						<s:elseif test="#st.index==2 ||#papers[0].type=='02'">思想道德修养与法律基础</s:elseif>
						<s:elseif test="#st.index==3 ||#papers[0].type=='03'">毛泽东思想和中国特设社会主义理论体系概论</s:elseif>
						<s:elseif test="#st.index==4 ||#papers[0].type=='04'">中国近现代史纲要</s:elseif>
						•</b>
					</div>												
				    <ul>
				    	<s:if test="top.size!=0">
							<s:iterator value="top" id="paper">	
					        	<li>
					        	<span style="float:right;"><s:date name="#paper.publishDate" format="yyyy-MM-dd"/></span>
					        	<a href="paper/viewPaperByUuid.action?uuid=${paper.uuid}">&nbsp;&nbsp;<s:property value="#paper.title"></s:property></a>
					        	
					        	</li>
					        	
						    </s:iterator>       
					    </s:if>
					    <s:else>
					    	<font color="#CCCCCC">暂无内容</font>
					    </s:else>
					</ul>
				   	<BR/>
				</s:iterator>
			</div>
			<div class="div_clear">
			</div>
		</div>
	</body>
</html>